package com.xzh.wms.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.xzh.wms.entity.*;
import com.xzh.wms.service.OdoMasterService;
import java.util.List;

 /**
 * 出库单单头;(206_odo_master)控制层
 * @author : heimi
 * @date : 2024-12-2
 */
@RestController
@RequestMapping("/api/odo")
public class OdoMasterController{
    @Autowired
    private OdoMasterService odoMasterService;
    
    /** 
     * 查询接口
     */
     @GetMapping
     public List<OdoMaster> select(OdoMasterQuery query){
        return odoMasterService.select(query);
    }
    
    @PostMapping 
    public Integer insert(@RequestBody OdoMaster product){
       return odoMasterService.insert(product);
    }
    
    @PutMapping 
    public Integer update(@RequestBody OdoMaster product){
        return odoMasterService.update(product);
    }
    
    @DeleteMapping
    public Integer delete(Integer id){
        return odoMasterService.delete(id);
    }
}